package com.jade.bss.customer;

/**
 * 常量定义.
 *
 * @author sky
 * @version 1.0 14-9-10 上午10:27
 */
public class CustomerConstants
{
    public static final int ERR_AUTH_FAIL = 401;
    public static final int ERR_INVALID_CODE = 402;
    public static final int ERR_USER_NOT_EXISTED = 409;
    public static final int ERR_USER_EXISTED = 410;
    public static final int ERR_BIND_EXISTED = 411;
    public static final int ERR_BIND_AUTH = 412;

    //错误代码
    //角色不存在
    public static final String ERR_ROLE_NOT_EXISTED = "err.bss.admin.role.not_existed";
    //角色已经存在
    public static final String ERR_ROLE_EXISTED = "err.bss.admin.role.existed";
    //角色上存在授权
    public static final String ERR_ROLE_ASSOCIATE_PRINCIPALS = "err.bss.admin.role.associate_principals";
    //角色上已经授权给了该身份
    public static final String ERR_ROLE_PRINCIPAL_EXISTED = "err.bss.admin.role.principal_existed";
    //权限不存在
    public static final String ERR_PERM_NOT_EXISTED = "err.bss.admin.permission.not_existed";
    //权限已经存在
    public static final String ERR_PERM_EXISTED = "err.bss.admin.permission.existed";
    //权限组不存在
    public static final String ERR_PERM_GRP_NOT_EXISTED = "err.bss.admin.permission.group_not_existed";
    //权限组已经存在
    public static final String ERR_PERM_GRP_EXISTED = "err.bss.admin.permission.group_existed";
    //权限授权已经存在
    public static final String ERR_GRANT_PERM_EXISTED = "err.bss.admin.grant.perm_existed";
    //密码不匹配
    public static final String ERR_ACCOUNT_PASSWORD_MISMATCHED = "err.bss.admin.account.mismatched_password";
    //账号不存在
    public static final String ERR_ACCOUNT_NOT_EXISTED = "err.bss.admin.account.not_existed";
    //名称重复
    public static final String ERR_ACCOUNT_DUPLICATED_NAME = "err.bss.admin.account.duplicated_name";
    //登陆验证失败
    public static final String ERR_ACCOUNT_AUTH_FAIL = "err.bss.admin.account.auth_fail";
}
